#ifndef RESPONSECMD_H
#define RESPONSECMD_H

#include "Command/BaseCmd.h"
#include "Protocol/CloudProtocol.h"

class ResponseCmd : public BaseCmd
{
    Q_OBJECT

public:
    enum{FunctionCode = CloudProtocol::Response};

    Q_INVOKABLE explicit ResponseCmd(QObject *parent = 0);

    Package toPackage();
    void unPackage(Package package);

    quint16 responseCode() const;
    void setResponseCode(const quint16 &responseCode);

private:
    quint16 m_responseCode;

};

#endif // RESPONSECMD_H
